%!TEX program = pdflatex
\documentclass{standalone}
\usepackage[UTF8]{ctex}
\usepackage{caption}
\usepackage{amsmath}
\usepackage{tikz}
\usepackage{mathdots}
\usepackage{yhmath}
\usepackage{cancel}
\usepackage{color}
\usepackage{siunitx}
\usepackage{array}
\usepackage{multirow}
\usepackage{amssymb}
\usepackage{gensymb}
\usepackage{tabularx}
\usepackage{booktabs}
\usetikzlibrary{fadings}
\tikzset{every picture/.style={line width=0.75pt}} %set default line width to 0.75pt    

\begin{document}



\tikzset{every picture/.style={line width=0.75pt}} %set default line width to 0.75pt        

\begin{tikzpicture}[x=0.75pt,y=0.75pt,yscale=-1,xscale=1]
%uncomment if require: \path (0,635.1999969482422); %set diagram left start at 0, and has height of 635.1999969482422

%Shape: Axis 2D [id:dp19220122198927292] 
\draw [line width=1.5]  (70,317.44) -- (544,317.44)(117.4,96.38) -- (117.4,342) (537,312.44) -- (544,317.44) -- (537,322.44) (112.4,103.38) -- (117.4,96.38) -- (122.4,103.38)  ;
%Curve Lines [id:da22447887793362087] 
\draw [color={rgb, 255:red, 20; green, 100; blue, 194 }  ,draw opacity=1 ][line width=1.5]    (138,122) .. controls (151.12,299.77) and (177.12,285.77) .. (466,296) ;


%Curve Lines [id:da8532503269550739] 
\draw [color={rgb, 255:red, 225; green, 21; blue, 21 }  ,draw opacity=1 ][line width=1.5]    (146,294) .. controls (199.12,299.77) and (463.12,333.77) .. (468,134) ;


%Curve Lines [id:da6869036117638533] 
\draw [line width=1.5]    (148,118) .. controls (230.12,323.77) and (392.12,291.77) .. (456,130) ;


%Straight Lines [id:da7243355335369223] 
\draw  [dash pattern={on 4.5pt off 4.5pt}]  (309,138) -- (312,298) ;


%Shape: Rectangle [id:dp2604374409792646] 
\draw   (350,60) -- (456,60) -- (456,130) -- (350,130) -- cycle ;
%Straight Lines [id:da7960099263678011] 
\draw [color={rgb, 255:red, 18; green, 109; blue, 216 }  ,draw opacity=1 ][line width=1.5]    (358,74.38) -- (390,74) ;


%Straight Lines [id:da178896337924064] 
\draw [color={rgb, 255:red, 225; green, 24; blue, 49 }  ,draw opacity=1 ][line width=1.5]    (360,94.38) -- (392,94) ;


%Straight Lines [id:da24114855968887783] 
\draw [color={rgb, 255:red, 225; green, 24; blue, 49 }  ,draw opacity=1 ][line width=1.5]    (359,114.38) -- (391,114) ;



% Text Node
\draw (312.5,331) node  [align=left] {模型复杂度};
% Text Node
\draw (105,165) node [rotate=-270] [align=left] {错误};
% Text Node
\draw (325,184) node [rotate=-270] [align=left] {最优模型};
% Text Node
\draw (416,73) node   {$( bias)^{2}$};
% Text Node
\draw (423,92.5) node   {$variance$};
% Text Node
\draw (409.5,112.5) node   {$\mathcal{R}( f)$};


\end{tikzpicture}

\end{document}
